<?php
/**
 * 设置好友偷饲料
 */
require_once __DIR__ . '/Base.php';

$now = time();
$from_uid = 51;
$targe_uid = 59;

$edit = $DB->update('ducks', [
    'lastCheckSteal'=>0,
    'leftFodder'=>0,
    'startFeedTime'=>0,
    'updateFeedTime'=>0,
    'backTime'=>0,
    'status'=>2,
    'startTime'=>$now
], ['id'=>$from_uid]);

$edit = $DB->update('droparounds', [
    'friendUserId'=>$targe_uid,
    'friendDuckId'=>$from_uid,
    'stealTime'=>$now,
    'kickTime'=>0,
], ['id'=>$from_uid]);
?>
